

class TranslateDefine {

  //印地语
  static const String languageKeyHI = "hi";

  //英语
  static const String languageKeyEN = "en";

  //基于腾讯的翻译字段
  static const baseLanguageMap = {
    // "繁体中文": "zh-TW",
    "简体中文" : "zhCN",
    "英语": languageKeyEN,
    "日语": "ja",
    "韩语": "ko",
    "法语": "fr",
    "西班牙语": "es",
    "意大利语": "it",
    "德语": "de",
    "土耳其语": "tr",
    "俄语": "ru",
    "葡萄牙语": "pt",
    "越南语": "vi",
    "印尼语": "id",
    "泰语": "th",
    "马来语": "ms",
    "阿拉伯语": "ar",
    "印地语" : languageKeyHI,
  };

  static const baseLanguageKeyToAliKeyMap = {
    // "繁体中文": "zh-TW",
    "zh-CN" : "zh",
    "en": "en",
    "ja": "ja",
    "ko": "ko",
    "fr": "",
    "西班牙语": "es",
    "意大利语": "it",
    "德语": "de",
    "土耳其语": "tr",
    "俄语": "ru",
    "葡萄牙语": "pt",
    "越南语": "vi",
    "印尼语": "id",
    "泰语": "th",
    "马来语": "ms",
    "阿拉伯语": "ar",
    "印地语" : "hi",
  };

  static Map<String,String> baseLanguageMapReverse = baseLanguageMap.map((key, value) => MapEntry(value, key));

  static const String contentTableName = "translate_content";
  static const String listStatusKey = "listStatusKey";
  static const String listKeyName = "key";
  static const List<String> headKeyArray = [
    listStatusKey,
    listKeyName,
  ];

}

enum TranslateMainMenuAction{
  del(0), //删除
  editKey(1), //编辑key
  translateEmpty(2), //翻译不存在的内容
  clearTranslate(3),
  editTranslate(4),
  exportIos(5),
  exportJson(6),
  copyKey(7),
  setDidExport(8);
  final int iValue;
  const TranslateMainMenuAction(this.iValue);
}

enum TranslateDefaultExportType{
  ios(0),
  json(1);
  final int iValue;
  const TranslateDefaultExportType(this.iValue);
}

enum TranslateResultType{
  cancel(0),
  fail(1),
  suc(2);
  final int iValue;
  const TranslateResultType(this.iValue);
}